package com.tjetc.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;

//每日账单
@Data
public class DailyBill {
    //账单id
    Integer billId;
    //商家id
    Integer merchantId;
    //账单营业总额
    BigDecimal amount;
    //商家入账额度
    BigDecimal merchantAmount;
    //管理端账户入账额度
    BigDecimal adminAmount;
    //商家提成率
    BigDecimal commission;
    //当天完成订单数量
    Integer finishNumber;
    //当天取消订单数量
    Integer cancelledNumber;
    //订单定时任务时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime time;
}
